package com.dengyuanke.upms.domain.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dengyuanke.upms.domain.SuperEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;


/**
 * <p>
 * 部门管理
 * </p>
 *
 * @author dengyuanke
 * @since 2019-06-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_dept")
public class Dept extends SuperEntity {

private static final long serialVersionUID=1L;

    /**
     * 部门名称
     */
    @NotBlank(message = "部门名称不能为空")
    private String name;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 是否删除  -1：已删除  0：正常
     */
    @TableLogic
    private Boolean delFlag;

    private Long parentId;

    private Long tenantId;


}
